
ddns-update-style interim;
ignore client-updates;

subnet 192.168.16.0 netmask 255.255.252.0 {
	option routers			192.168.16.12;
	option subnet-mask		255.255.252.0;
	
	# option domain-name		"tecmold.net";
 	option domain-name-servers	10.8.3.1,202.96.134.133;
	option time-offset		-18000;	# Eastern Standard Time

	range dynamic-bootp 192.168.18.100 192.168.19.252;
	default-lease-time 7200;
	max-lease-time 28800;

	# we want the nameserver to appear at a fixed address
	{[foreach name=outer key=key item=item from=$result]}
	{[assign var="no" value="`$key+1`"]}
	host ns{[$no]} {
		hardware ethernet {[$item.mac]};
		fixed-address {[$item.ip]};		
		{[if $item.gw ne '192.168.16.12']}option routers {[$item.gw]};{[/if]}		
		{[if $item.dns ne '']}option domain-name-servers {[$item.dns]};{[/if]}		
		# {[$item.emp_t]}  {[$item.category_t]}		
	}
	{[/foreach]}
}
